package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:18
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductVersionScope implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long productVersionId;

    /**
     * Attribute productVersionId Be Seted Falg
     */
    private boolean productVersionIdSetted = false;

    /**
    * Attribute productVersionId is Null Falg
    */
    private boolean productVersionIdNull = false;
    private String scopeName;

    /**
     * Attribute scopeName Be Seted Falg
     */
    private boolean scopeNameSetted = false;

    /**
    * Attribute scopeName is Null Falg
    */
    private boolean scopeNameNull = false;
    private int scopePriority;

    /**
     * Attribute scopePriority Be Seted Falg
     */
    private boolean scopePrioritySetted = false;

    /**
    * Attribute scopePriority is Null Falg
    */
    private boolean scopePriorityNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String productVersionName;

    /**
     * Attribute productVersionName Be Seted Falg
     */
    private boolean productVersionNameSetted = false;

    /**
    * Attribute productVersionName is Null Falg
    */
    private boolean productVersionNameNull = false;

    public ProductVersionScope() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get productVersionId
         *
         * @return long
         */
    final public long getProductVersionId() {
        return productVersionId;
    }

    /**
     * Set productVersionId
     *
     * @param long
     */
    final public void setProductVersionId(long productVersionId) {
        this.productVersionId = productVersionId;

        this.productVersionIdSetted = true;

        this.setProductVersionIdNull(false);
    }

    /**
     * Get productVersionId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductVersionIdSetted() {
        return this.productVersionIdSetted;
    }

    /**
     * Set productVersionId Null
     *
     */
    final public void setProductVersionIdNull() {
        this.productVersionIdNull = true;
    }

    final public void setProductVersionIdNull(boolean aNullFlag) {
        this.productVersionIdNull = aNullFlag;
    }

    final public boolean isProductVersionIdNull() {
        return this.productVersionIdNull;
    }

    /**
         * Get scopeName
         *
         * @return String
         */
    final public String getScopeName() {
        if (isScopeNameNull()) {
            return null;
        } else {
            return StringUtils.trim(scopeName);
        }
    }

    /**
     * Set scopeName
     *
     * @param String
     */
    final public void setScopeName(String scopeName) {
        this.scopeName = StringUtils.trim(scopeName);

        this.scopeNameSetted = true;

        this.setScopeNameNull(this.scopeName == null);
    }

    /**
     * Get scopeName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isScopeNameSetted() {
        return this.scopeNameSetted;
    }

    /**
     * Set scopeName Null
     *
     */
    final public void setScopeNameNull() {
        this.scopeNameNull = true;
    }

    final public void setScopeNameNull(boolean aNullFlag) {
        this.scopeNameNull = aNullFlag;
    }

    final public boolean isScopeNameNull() {
        return this.scopeNameNull;
    }

    /**
         * Get scopePriority
         *
         * @return int
         */
    final public int getScopePriority() {
        return scopePriority;
    }

    /**
     * Set scopePriority
     *
     * @param int
     */
    final public void setScopePriority(int scopePriority) {
        this.scopePriority = scopePriority;

        this.scopePrioritySetted = true;

        this.setScopePriorityNull(false);
    }

    /**
     * Get scopePriority Has Been Setted
     *
     * @return boolean
     */
    final public boolean isScopePrioritySetted() {
        return this.scopePrioritySetted;
    }

    /**
     * Set scopePriority Null
     *
     */
    final public void setScopePriorityNull() {
        this.scopePriorityNull = true;
    }

    final public void setScopePriorityNull(boolean aNullFlag) {
        this.scopePriorityNull = aNullFlag;
    }

    final public boolean isScopePriorityNull() {
        return this.scopePriorityNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get productVersionName
         *
         * @return String
         */
    final public String getProductVersionName() {
        if (isProductVersionNameNull()) {
            return null;
        } else {
            return StringUtils.trim(productVersionName);
        }
    }

    /**
     * Set productVersionName
     *
     * @param String
     */
    final public void setProductVersionName(String productVersionName) {
        this.productVersionName = StringUtils.trim(productVersionName);

        this.productVersionNameSetted = true;

        this.setProductVersionNameNull(this.productVersionName == null);
    }

    /**
     * Get productVersionName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductVersionNameSetted() {
        return this.productVersionNameSetted;
    }

    /**
     * Set productVersionName Null
     *
     */
    final public void setProductVersionNameNull() {
        this.productVersionNameNull = true;
    }

    final public void setProductVersionNameNull(boolean aNullFlag) {
        this.productVersionNameNull = aNullFlag;
    }

    final public boolean isProductVersionNameNull() {
        return this.productVersionNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductVersionScope) == false) {
            return false;
        }

        ProductVersionScope other = (ProductVersionScope) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("productVersionId=");
        buffer.append(this.productVersionId);

        buffer.append("scopeName=");
        buffer.append(this.scopeName);

        buffer.append("scopePriority=");
        buffer.append(this.scopePriority);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("productVersionName=");
        buffer.append(this.productVersionName);

        buffer.append("]");

        return buffer.toString();
    }
}
